מבוא כללי לתכנות ולמדעי המחשב

Size: px
Start display at page:

Download "מבוא כללי לתכנות ולמדעי המחשב"

Transcription

1 מבוא כללי לתכנות ולמדעי המחשב מרצה: אמיר רובינשטיין מתרגל: דין שמואל אוניברסיטת תל אביב סמסטר חורף שיעור 6 ייצוג תמונה דיגיטלית מבוא 1. ייצוג תמונות בזיכרון המחשב 2. תמונות סינתטיות 3. עיבוד תמונה בסיסי 4. העשרה 5. 1

2 תמונות דיגיטליות מטרת שיעור זה היא לספק הבנה בסיסית של עולם התמונות הדיגיטליות, מהמסתורין האופף אותו. ולהסיר חלק בסוף שיעור זה: תבינו כיצד תמונה מיוצגת תדעו לייצר תמונות מלאכותיות תוכלו לבצע מניפולציות בזיכרון המחשב עם תבניות שונות פשוטות על תמונות אמיתיות (ומשונות) יחד עם זאת לא ניכנס לסוגיות טכנולוגיות ספציפיות, שקיימות בשוק. או לאופן השימוש בתוכנות 2

3 Brief "Historical" Technological Context - early 1980's - today transistors speed 29 K 4.77 MHz 1.4 G 3.7 GHz processors memory RAM 640 KB 4 GB Hard Disk 5 MB 500 GB communication , simple text (128 ascii chars) tons of data, inc. images (next slide) 3

4 A Brief Historical Context, 30 Years Later With the proliferation of (1) larger and faster memory, (2) strong, inexpensive processors, (3) faster internet, it became possible to efficiently (1) store, (2) process, and (3) transmit large digital images. Facebook stores about 350 million photos DAILY (reported Sep 2013). 1.1 billion photos where uploaded on 2013 New Years Eve. The total number of photos shared on Instagram is 16 billion. On average, 55 million photos are posted daily (reported Dec 2013). (Instagram was launched on Oct 2010!!). On Flickr the average upload of images per MONTH in 2012 was about 43 million. This dramatic technological progress is reflected by the following saying, often attributed (apparently incorrectly) to Bill Gates, in 1981: "640KB ought to be enough for anybody". 4 Slide (modified) courtesy of Prof. Benny Chor

5 Digital Image Representation A digital image is encoded (represented) as a matrix of numbers Each element in the matrix is called a pixel (picture element), and represents the light intensity / color at that location of the image x m columns pixel (0,0) pixel (m-1,0) y.. pixel (x,y) n x m matrix. n rows pixel (0,n-1) 5

6 Gray Level Images For simplicity, we will deal with gray-level images (although what we will see can also be applicable, with minor changes, to other formats). 8 bits per pixel (2 8 =256 gray levels): 0 = black, 255 = white 38, 26, 21, 36, 19, 28, 33, 44, 31, 112, 77, 83, 34, 168, 159, 48, 50, 14, 55, 211, 112, 137, 34, 101, 129, 62, 54, 40, 21, 86, 41, 46, 35, 19, 35, 52, 18, 57, 39, 123, 38, 16, 38, 67, 45, 21, 29, 59, 10, 130, 45, 43, 46, 51, 44, 39, 53, 31, 24, 64, 47, 30, 54, 45, 40, 46, 23, 26, 58, 40, 71, 57, 66, 63, 70, 84, 65, 62, 91, 49, 72, 55, 43, 57, 90, 111, 92, 73, 74, 56, 47, 45, 36, 78, 114, 113, 81, 54, 57, 44 6

7 Number of bits per pixel. Determines number of possible hues (גוונים) per pixel Image Bit Depth Image from: A human observer is able to discriminate between at most a few hundreds shades of gray in optimal conditions (some estimations are lower, depending also on the background, distance from the image etc.). Therefore, 8 bits are normally enough for grayscale images (8x3=24 for RGB). Higher bit depths images are sometimes aimed for an automated analysis by a computer (e.g. CT images).

8 Colors B&W / gray-level / RGB B&W (1 bpp) 256 gray level image (8 bpp) "true color" image (8+8+8 = 24 bpp) Images from: 8

9 - A 256 gray-level image of size 512x512 pixels is stored in a file. What is the volume of the file? Exercise 1) 512 Bytes 2) 256 KB 3) 4 MB 4) 12 GB

10 Images in Python We will use the Python Imaging Library PIL / Pillow. It enables: Reading / storing images Displaying image Basic image processing Installing Pillow: first check which version of Python 3.6 you have: 32 or 64 bit (see figure) Windows users: if you have a 32 bit version, click Pillow win32-py3.6.exe if you have a 64 bit version, click Pillow win-amd64-py3.6.exe (both links are from this website: Mac users: type pip3 install PILLOW in a terminal shell 32/64 bit 10 Upon successful installation, this command should yield no error messages.

11 Basic Handling of Images using PIL from PIL import Image # Open image >>> im = Image.open("./my_image.jpg") "./" = current folder "../" = parent folder >>> im.size (388, 541) #width, height >>> im.show() # display # Save as a new file >>> im.save("./new_image", "bmp") # crop >>> region = im.crop((200,410,210,440)) >>> region.show() # convert to 256 gray levels # so the code we write later will work >>> im = im.convert('l')

12 Example: Rotating an Image in PIL coins = Image.open("./coins.jpg") coins.show() coins_rot = coins.rotate(45) coins_rot.show() 12

13 The Matrix Representing an Image # Load image data into a matrix # Changes in the matrix WILL affect image >>> im = Image.open("./my_image.jpg") >>> mat = im.load() >>> mat[0,0] 31 mat[x,y] is the pixel at column x and row y >>> mat[0,0] = 255 >>> mat[0,0] 255 >>> for x in range(20): for y in range(20): mat[x,y] = 255 >>> im.show() #im was affected by the change in mat! 13

14 Synthetic Images # Creating a new image im = Image.new(mode='L', size=(100,50), color=255) # 'L' for 256 gray levels # size: (width, height) # initialized 255 (all white) def vertical_lines(w,h): im = Image.new(mode='L', size=(w,h), color=255) mat = im.load() for x in range(w): if x%10 == 0: for y in range(h): mat[x,y] = 0 return im 14 vertical_lines(100, 50).show()

15 Synthetic Images (2) def diagonal(n): im = Image.new(mode='L', size=(n,n), color=255) mat = im.load() for x in range(n): for y in range(n): if x-y == 0: mat[x,y] = 0 return im >>> image = diagonal(500) >>> image.show() #??? 15

16 Synthetic Images (3) Additional, rather unexpected examples: def product(n): surprise = Image.new(mode='L', size=(n,n), color=255) mat = surprise.load() for x in range(n): for y in range(n): mat[x,y] = (x*y) % 256 return surprise def circles(n): surprise = Image.new(mode='L', size=(n,n), color=255) mat = surprise.load() for x in range(n): for y in range(n): mat[x,y] = (x**2 + y**2) % 256 return surprise 16

17 Synthetic Images (3) >>> circles(256).show() >>> product(256).show() 17

18 Manipulating Images - add def add(im, k): w,h = im.size new = im.copy() mat = im.load() mat_new = new.load() for x in range(w): for y in range(h): mat_new[x,y] = (mat[x,y]+k) % 256 return new The parameter im is a PIL image object of 256 gray levels. For example: >>> im = Image.open("./my_image").convert('L') >>> new = add(im, 50) >>> new.show() 18

19 Manipulating Images - add >>> im = Image.open("./eifel.jpg").convert('L') >>> new = add(im, 50) >>> new.show() 19 im add(im, 50).show()

20 Manipulating Images (2) - negative def negate(im): w,h = im.size new = im.copy() mat = im.load() mat_new = new.load() for x in range(w): for y in range(h): mat_new[x,y] = return new 20 im negate(im).show()

21 Manipulating Images (2) - negative def negate(im): w,h = im.size new = im.copy() mat = im.load() mat_new = new.load() for x in range(w): for y in range(h): mat_new[x,y] = 255 mat[x,y] return new 21 im negate(im).show()

22 Manipulating Images (3) upside_down def upside_down(im): w,h = im.size new = im.copy() mat = im.load() mat_new = new.load() for x in range(w): for y in range(h): mat_new[x,y] = return new 22 im upside_down(im).show()

23 Manipulating Images (3) upside_down def upside_down(im): w,h = im.size new = im.copy() mat = im.load() mat_new = new.load() for x in range(w): for y in range(h): mat_new[x,y] = mat[x,h-y-1] return new Left-right switch? 23 im upside_down(im).show()

24 Additional Topics as time allows 24

25 Resolution and Pixel Physical Size Resolution is the capability of the sensor to observe or measure the smallest object clearly with distinct boundaries. Resolution depends upon the physical size of a pixel. Higher resolution = lower pixel size. Source: Wikipedia Increasing resolution 25

26 Higher Dimension Images A 2D image is encoded as a matrix 3D: spatial slices of 2D images video 2D images over time 26

27 Compression and Image Formats Digital images with high pixel resolution and bit depth take up lots of computer memory. This motivates the need for compressing images. During compression, some of the information in the image may be lost, in which case the compression is termed lossy. Otherwise, we call it lossless. jpg, tiff, png, bmp, gif etc., differ by the type of compression applied to the original image. The bmp format is lossless, while the other formats are lossy (tiff can be both, depending on some parameter settings).

28 The Example of jpg jpg format partitions the image into squares of 8-by-8 pixels. Most such squares will exhibit only gradual, moderate changes, especially in smooth areas of the image. These gradual changes can be well approximated by far fewer bits than the = 512 bits in the original representation. A factor of 10 (or even more) saving in space can be achieved. original image highly compressed version Human HT29 colon-cancer cells. In the compressed image on the right, all the pixels in the blue square are identical. In the green square, pixels only change from top to bottom. In the yellow square, pixels change in both directions.

29 The Example of jpg Human HT29 colon-cancer cells. In the compressed image on the right, all the pixels in the blue square are identical. In the green square, pixels only change from top to bottom. In the yellow square, pixels change in both directions.

30 Typical operations: 1. Color corrections / calibration 2. Image segmentation 3. Image registration / alignment 4. Denoising (noise reduction) 5. Edge detection Image Processing Typical applications: Machine vision Medical image processing Face detection Augmented reality 30

31 From Wikipedia: Segmentation In computer vision, image segmentation is the process of partitioning a digital image into multiple segments (sets of pixels, also known as superpixels). The goal of segmentation is to simplify and/or change the representation of an image into something that is more meaningful and easier to analyze. Image segmentation is typically used to locate objects and boundaries (lines, curves, etc.) in images. For example, applications in medical imaging: - Locate tumors and other pathologies - Measure tissue volumes - Diagnosis, study of anatomical structure 31 Image from:

32 Segmentation by Thresholding Simplest segmentation method Apply a threshold to turn a gray-scale image into a binary image (BW) this is called Binary Segmentation Human HT29 colon-cancer cells Binary segmentation, threshold = 20 Can apply more than one threshold, creating >2 segments 32 The key is to select the appropriate threshold values

33 Binary Segmentation Which threshold is the best? Original Threshold = 20 Threshold = 40 Threshold = 60

34 Binary Segmentation - Code def segment(im, thrd): ''' Binary segmentation of image im by threshold thrd ''' width, height = im.size out = Image.new('L',(width, height)) mat = im.load() out_mat = out.load() for x in range(width): for y in range(height): if mat[x,y] >= thrd: out_mat[x,y] = 255 else: out_mat[x,y] = 0 return out

35 Edge Detection Edge - sharp change in intensity between close pixels Usually captures much of the meaningful information in the image A very useful image processing application images extracted using a Sobel filter from: 35

Lecture 17.5: More image processing: Segmentation

Lecture 17.5: More image processing: Segmentation Extended Introduction to Computer Science CS1001.py Lecture 17.5: More image processing: Segmentation Instructors: Benny Chor, Amir Rubinstein Teaching Assistants: Michal Kleinbort, Yael Baran School of

More information

Extended Introduction to Computer Science CS1001.py Lecture 24: Introduction to Digital Image Processing

Extended Introduction to Computer Science CS1001.py Lecture 24: Introduction to Digital Image Processing Extended Introduction to Computer Science CS1001.py Lecture 24: Introduction to Digital Image Processing Instructors: Daniel Deutch, Amir Rubinstein Teaching Assistants: Michal Kleinbort, Amir Gilad School

More information

Computing for Engineers in Python

Computing for Engineers in Python Computing for Engineers in Python Lecture 10: Signal (Image) Processing Autumn 2011-12 Some slides incorporated from Benny Chor s course 1 Lecture 9: Highlights Sorting, searching and time complexity Preprocessing

More information

How is Information Stored

How is Information Stored Binary CSCE 101 How is Information Stored Information is stored in the computer as binary numbers (0 s and 1 s). Even images are stored in this way, where a combination of 0 s and 1 s represent each color

More information

UNIT 7B Data Representa1on: Images and Sound. Pixels. An image is stored in a computer as a sequence of pixels, picture elements.

UNIT 7B Data Representa1on: Images and Sound. Pixels. An image is stored in a computer as a sequence of pixels, picture elements. UNIT 7B Data Representa1on: Images and Sound 1 Pixels An image is stored in a computer as a sequence of pixels, picture elements. 2 1 Resolu1on The resolu1on of an image is the number of pixels used to

More information

Images and Graphics. 4. Images and Graphics - Copyright Denis Hamelin - Ryerson University

Images and Graphics. 4. Images and Graphics - Copyright Denis Hamelin - Ryerson University Images and Graphics Images and Graphics Graphics and images are non-textual information that can be displayed and printed. Graphics (vector graphics) are an assemblage of lines, curves or circles with

More information

Computer Programming

Computer Programming Computer Programming Dr. Deepak B Phatak Dr. Supratik Chakraborty Department of Computer Science and Engineering Session: Digital Images and Histograms Dr. Deepak B. Phatak & Dr. Supratik Chakraborty,

More information

Compression and Image Formats

Compression and Image Formats Compression Compression and Image Formats Reduce amount of data used to represent an image/video Bit rate and quality requirements Necessary to facilitate transmission and storage Required quality is application

More information

15110 Principles of Computing, Carnegie Mellon University

15110 Principles of Computing, Carnegie Mellon University 1 Overview Human sensory systems and digital representations Digitizing images Digitizing sounds Video 2 HUMAN SENSORY SYSTEMS 3 Human limitations Range only certain pitches and loudnesses can be heard

More information

15110 Principles of Computing, Carnegie Mellon University

15110 Principles of Computing, Carnegie Mellon University 1 Last Time Data Compression Information and redundancy Huffman Codes ALOHA Fixed Width: 0001 0110 1001 0011 0001 20 bits Huffman Code: 10 0000 010 0001 10 15 bits 2 Overview Human sensory systems and

More information

Fundamentals of Multimedia

Fundamentals of Multimedia Fundamentals of Multimedia Lecture 2 Graphics & Image Data Representation Mahmoud El-Gayyar elgayyar@ci.suez.edu.eg Outline Black & white imags 1 bit images 8-bit gray-level images Image histogram Dithering

More information

Digital Imaging and Image Editing

Digital Imaging and Image Editing Digital Imaging and Image Editing A digital image is a representation of a twodimensional image as a finite set of digital values, called picture elements or pixels. The digital image contains a fixed

More information

Image Perception & 2D Images

Image Perception & 2D Images Image Perception & 2D Images Vision is a matter of perception. Perception is a matter of vision. ES Overview Introduction to ES 2D Graphics in Entertainment Systems Sound, Speech & Music 3D Graphics in

More information

UNIT 7C Data Representation: Images and Sound

UNIT 7C Data Representation: Images and Sound UNIT 7C Data Representation: Images and Sound 1 Pixels An image is stored in a computer as a sequence of pixels, picture elements. 2 1 Resolution The resolution of an image is the number of pixels used

More information

Image Optimization for Print and Web

Image Optimization for Print and Web There are two distinct types of computer graphics: vector images and raster images. Vector Images Vector images are graphics that are rendered through a series of mathematical equations. These graphics

More information

INTRODUCTION TO COMPUTER GRAPHICS

INTRODUCTION TO COMPUTER GRAPHICS INTRODUCTION TO COMPUTER GRAPHICS ITC 31012: GRAPHICAL DESIGN APPLICATIONS AJM HASMY hasmie@gmail.com WHAT CAN PS DO? - PHOTOSHOPPING CREATING IMAGE Custom icons, buttons, lines, balls or text art web

More information

Chapter 3 Graphics and Image Data Representations

Chapter 3 Graphics and Image Data Representations Chapter 3 Graphics and Image Data Representations 3.1 Graphics/Image Data Types 3.2 Popular File Formats 3.3 Further Exploration 1 Li & Drew c Prentice Hall 2003 3.1 Graphics/Image Data Types The number

More information

LECTURE 03 BITMAP IMAGE FORMATS

LECTURE 03 BITMAP IMAGE FORMATS MULTIMEDIA TECHNOLOGIES LECTURE 03 BITMAP IMAGE FORMATS IMRAN IHSAN ASSISTANT PROFESSOR IMAGE FORMATS To store an image, the image is represented in a two dimensional matrix of pixels. Information about

More information

PENGENALAN TEKNIK TELEKOMUNIKASI CLO

PENGENALAN TEKNIK TELEKOMUNIKASI CLO PENGENALAN TEKNIK TELEKOMUNIKASI CLO : 4 Digital Image Faculty of Electrical Engineering BANDUNG, 2017 What is a Digital Image A digital image is a representation of a two-dimensional image as a finite

More information

The BIOS in many personal computers stores the date and time in BCD. M-Mushtaq Hussain

The BIOS in many personal computers stores the date and time in BCD. M-Mushtaq Hussain Practical applications of BCD The BIOS in many personal computers stores the date and time in BCD Images How data for a bitmapped image is encoded? A bitmap images take the form of an array, where the

More information

The Strengths and Weaknesses of Different Image Compression Methods. Samuel Teare and Brady Jacobson

The Strengths and Weaknesses of Different Image Compression Methods. Samuel Teare and Brady Jacobson The Strengths and Weaknesses of Different Image Compression Methods Samuel Teare and Brady Jacobson Lossy vs Lossless Lossy compression reduces a file size by permanently removing parts of the data that

More information

Prof. Feng Liu. Fall /02/2018

Prof. Feng Liu. Fall /02/2018 Prof. Feng Liu Fall 2018 http://www.cs.pdx.edu/~fliu/courses/cs447/ 10/02/2018 1 Announcements Free Textbook: Linear Algebra By Jim Hefferon http://joshua.smcvt.edu/linalg.html/ Homework 1 due in class

More information

UNIT 7C Data Representation: Images and Sound Principles of Computing, Carnegie Mellon University CORTINA/GUNA

UNIT 7C Data Representation: Images and Sound Principles of Computing, Carnegie Mellon University CORTINA/GUNA UNIT 7C Data Representation: Images and Sound Carnegie Mellon University CORTINA/GUNA 1 Announcements Pa6 is available now 2 Pixels An image is stored in a computer as a sequence of pixels, picture elements.

More information

Introduction to Photography

Introduction to Photography Topic 11 - Bits & Bytes Learning Outcomes You will have a much better understanding of the basic units of digital photography. Bits & Bytes A Bit is the basic unit on a computer, which can be 0/1, off/

More information

3.1 Graphics/Image age Data Types. 3.2 Popular File Formats

3.1 Graphics/Image age Data Types. 3.2 Popular File Formats Chapter 3 Graphics and Image Data Representations 3.1 Graphics/Image Data Types 3.2 Popular File Formats 3.1 Graphics/Image age Data Types The number of file formats used in multimedia continues to proliferate.

More information

CS101 Lecture 19: Digital Images. John Magee 18 July 2013 Some material copyright Jones and Bartlett. Overview/Questions

CS101 Lecture 19: Digital Images. John Magee 18 July 2013 Some material copyright Jones and Bartlett. Overview/Questions CS101 Lecture 19: Digital Images John Magee 18 July 2013 Some material copyright Jones and Bartlett 1 Overview/Questions What is digital information? What is color? How do pictures get encoded into binary

More information

Byte = More common: 8 bits = 1 byte Abbreviation:

Byte = More common: 8 bits = 1 byte Abbreviation: Text, Images, Video and Sound ASCII-7 In the early days, a was used, with of 0 s and 1 s, enough for a typical keyboard. The standard was developed by (American Standard Code for Information Interchange)

More information

CS 262 Lecture 01: Digital Images and Video. John Magee Some material copyright Jones and Bartlett

CS 262 Lecture 01: Digital Images and Video. John Magee Some material copyright Jones and Bartlett CS 262 Lecture 01: Digital Images and Video John Magee Some material copyright Jones and Bartlett 1 Overview/Questions What is digital information? What is color? How do pictures get encoded into binary

More information

Using Adobe Photoshop

Using Adobe Photoshop Using Adobe Photoshop 1-1 - Advantages of Digital Imaging Until the 70s, using computers for images was unheard of outside academic circles. As general purpose computers have become faster with more capabilities,

More information

Applying mathematics to digital image processing using a spreadsheet

Applying mathematics to digital image processing using a spreadsheet Jeff Waldock Applying mathematics to digital image processing using a spreadsheet Jeff Waldock Department of Engineering and Mathematics Sheffield Hallam University j.waldock@shu.ac.uk Introduction When

More information

Digital Imaging & Photoshop

Digital Imaging & Photoshop Digital Imaging & Photoshop Photoshop Created by Thomas Knoll in 1987, originally called Display Acquired by Adobe in 1988 Released as Photoshop 1.0 for Macintosh in 1990 Released the Creative Suite in

More information

Lane Detection in Automotive

Lane Detection in Automotive Lane Detection in Automotive Contents Introduction... 2 Image Processing... 2 Reading an image... 3 RGB to Gray... 3 Mean and Gaussian filtering... 5 Defining our Region of Interest... 6 BirdsEyeView Transformation...

More information

Data Representation. "There are 10 kinds of people in the world, those who understand binary numbers, and those who don't."

Data Representation. There are 10 kinds of people in the world, those who understand binary numbers, and those who don't. Data Representation "There are 10 kinds of people in the world, those who understand binary numbers, and those who don't." How Computers See the World There are a number of very common needs for a computer,

More information

Mech 296: Vision for Robotic Applications. Vision for Robotic Applications

Mech 296: Vision for Robotic Applications. Vision for Robotic Applications Mech 296: Vision for Robotic Applications Lecture 1: Monochrome Images 1.1 Vision for Robotic Applications Instructors, jrife@engr.scu.edu Jeff Ota, jota@scu.edu Class Goal Design and implement a vision-based,

More information

Digital Files File Format Storage Color Temperature

Digital Files File Format Storage Color Temperature Digital Files Digital Files File Format Storage Color Temperature PIXELS Pixel = picture element - smallest component of a digital image - MEGAPIXEL 1 million pixels = MEGAPIXEL PIXELS more pixels per

More information

CMPT 165 INTRODUCTION TO THE INTERNET AND THE WORLD WIDE WEB

CMPT 165 INTRODUCTION TO THE INTERNET AND THE WORLD WIDE WEB CMPT 165 INTRODUCTION TO THE INTERNET AND THE WORLD WIDE WEB Unit 5 Graphics and Images Slides based on course material SFU Icons their respective owners 1 Learning Objectives In this unit you will learn

More information

UNIVERSITY OF CALICUT INTRODUCTION TO MULTIMEDIA QUESTION BANK

UNIVERSITY OF CALICUT INTRODUCTION TO MULTIMEDIA QUESTION BANK UNIVERSITY OF CALICUT SCHOOL OF DISTANCE EDUCATION BGDA (UG SDE) II SEMESTER COMPLEMENTARY COURSE INTRODUCTION TO MULTIMEDIA QUESTION BANK BGDA Page 1 1. Which file format contain photorealistic images

More information

Developing Multimedia Assets using Fireworks and Flash

Developing Multimedia Assets using Fireworks and Flash HO-2: IMAGE FORMATS Introduction As you will already have observed from browsing the web, it is possible to add a wide range of graphics to web pages, including: logos, animations, still photographs, roll-over

More information

Brief Introduction to Vision and Images

Brief Introduction to Vision and Images Brief Introduction to Vision and Images Charles S. Tritt, Ph.D. January 24, 2012 Version 1.1 Structure of the Retina There is only one kind of rod. Rods are very sensitive and used mainly in dim light.

More information

Common File Formats. Need to store an image on disk Real photos Synthetic renderings Composed images. Desirable Features High quality.

Common File Formats. Need to store an image on disk Real photos Synthetic renderings Composed images. Desirable Features High quality. Image File Format 1 Common File Formats Need to store an image on disk Real photos Synthetic renderings Composed images Multiple sources Desirable Features High quality Lossy vs Lossless formats Channel

More information

2. Color spaces Introduction The RGB color space

2. Color spaces Introduction The RGB color space Image Processing - Lab 2: Color spaces 1 2. Color spaces 2.1. Introduction The purpose of the second laboratory work is to teach the basic color manipulation techniques, applied to the bitmap digital images.

More information

Computer Graphics. Si Lu. Fall er_graphics.htm 10/02/2015

Computer Graphics. Si Lu. Fall er_graphics.htm 10/02/2015 Computer Graphics Si Lu Fall 2017 http://www.cs.pdx.edu/~lusi/cs447/cs447_547_comput er_graphics.htm 10/02/2015 1 Announcements Free Textbook: Linear Algebra By Jim Hefferon http://joshua.smcvt.edu/linalg.html/

More information

TECHNICAL DOCUMENTATION

TECHNICAL DOCUMENTATION TECHNICAL DOCUMENTATION NEED HELP? Call us on +44 (0) 121 231 3215 TABLE OF CONTENTS Document Control and Authority...3 Introduction...4 Camera Image Creation Pipeline...5 Photo Metadata...6 Sensor Identification

More information

MATLAB Image Processing Toolbox

MATLAB Image Processing Toolbox MATLAB Image Processing Toolbox Copyright: Mathworks 1998. The following is taken from the Matlab Image Processing Toolbox users guide. A complete online manual is availabe in the PDF form (about 5MB).

More information

IMAGE SIZING AND RESOLUTION. MyGraphicsLab: Adobe Photoshop CS6 ACA Certification Preparation for Visual Communication

IMAGE SIZING AND RESOLUTION. MyGraphicsLab: Adobe Photoshop CS6 ACA Certification Preparation for Visual Communication IMAGE SIZING AND RESOLUTION MyGraphicsLab: Adobe Photoshop CS6 ACA Certification Preparation for Visual Communication Copyright 2013 MyGraphicsLab / Pearson Education OBJECTIVES This presentation covers

More information

HUFFMAN CODING. Catherine Bénéteau and Patrick J. Van Fleet. SACNAS 2009 Mini Course. University of South Florida and University of St.

HUFFMAN CODING. Catherine Bénéteau and Patrick J. Van Fleet. SACNAS 2009 Mini Course. University of South Florida and University of St. Catherine Bénéteau and Patrick J. Van Fleet University of South Florida and University of St. Thomas SACNAS 2009 Mini Course WEDNESDAY, 14 OCTOBER, 2009 (1:40-3:00) LECTURE 2 SACNAS 2009 1 / 10 All lecture

More information

International Journal of Advanced Research in Computer Science and Software Engineering

International Journal of Advanced Research in Computer Science and Software Engineering Volume 3, Issue 4, April 2013 ISSN: 2277 128X International Journal of Advanced Research in Computer Science and Software Engineering Research Paper Available online at: www.ijarcsse.com A Novel Approach

More information

Digital Imaging Rochester Institute of Technology

Digital Imaging Rochester Institute of Technology Digital Imaging 1999 Rochester Institute of Technology So Far... camera AgX film processing image AgX photographic film captures image formed by the optical elements (lens). Unfortunately, the processing

More information

SECTION I - CHAPTER 2 DIGITAL IMAGING PROCESSING CONCEPTS

SECTION I - CHAPTER 2 DIGITAL IMAGING PROCESSING CONCEPTS RADT 3463 - COMPUTERIZED IMAGING Section I: Chapter 2 RADT 3463 Computerized Imaging 1 SECTION I - CHAPTER 2 DIGITAL IMAGING PROCESSING CONCEPTS RADT 3463 COMPUTERIZED IMAGING Section I: Chapter 2 RADT

More information

Raster Image File Formats

Raster Image File Formats Raster Image File Formats 1995-2016 Josef Pelikán & Alexander Wilkie CGG MFF UK Praha pepca@cgg.mff.cuni.cz http://cgg.mff.cuni.cz/~pepca/ 1 / 35 Raster Image Capture Camera Area sensor (CCD, CMOS) Colours:

More information

5.1 Image Files and Formats

5.1 Image Files and Formats 5 IMAGE GRAPHICS IN THIS CHAPTER 5.1 IMAGE FILES AND FORMATS 5.2 IMAGE I/O 5.3 IMAGE TYPES AND PROPERTIES 5.1 Image Files and Formats With digital cameras and scanners available at ridiculously low prices,

More information

The next table shows the suitability of each format to particular applications.

The next table shows the suitability of each format to particular applications. What are suitable file formats to use? The four most common file formats used are: TIF - Tagged Image File Format, uncompressed and compressed formats PNG - Portable Network Graphics, standardized compression

More information

SAQA. How to Submit an Online Entry. Art by Mary Kay Fosnacht

SAQA. How to Submit an Online Entry. Art by Mary Kay Fosnacht SAQA KS MO OK How to Submit an Online Entry Art by Mary Kay Fosnacht Registration Process Locate and read the Prospectus Open the Registration Form Preview 1. About the Artist 2. About the Art 3. Upload

More information

CS101 Lecture 12: Digital Images. What You ll Learn Today

CS101 Lecture 12: Digital Images. What You ll Learn Today CS101 Lecture 12: Digital Images Sampling and Quantizing Using bits to Represent Colors and Images Aaron Stevens (azs@bu.edu) 20 February 2013 What You ll Learn Today What is digital information? How to

More information

1 Li & Drew c Prentice Hall Li & Drew c Prentice Hall 2003

1 Li & Drew c Prentice Hall Li & Drew c Prentice Hall 2003 Chapter 3 Graphics and Image Data Representations 3.1 Graphics/Image Data Types 3.2 Popular File Formats 3.3 Further Exploration 3.1 Graphics/Image Data Types The number of file formats used in multimedia

More information

Graphics for Web. Desain Web Sistem Informasi PTIIK UB

Graphics for Web. Desain Web Sistem Informasi PTIIK UB Graphics for Web Desain Web Sistem Informasi PTIIK UB Pixels The computer stores and displays pixels, or picture elements. A pixel is the smallest addressable part of the computer screen. A pixel is stored

More information

ITP 140 Mobile App Technologies. Colors Images Icons

ITP 140 Mobile App Technologies. Colors Images Icons ITP 140 Mobile App Technologies Colors Images Icons Establish a style Look and Feel Create or choose a color palette Pick colors that complement each other Pick colors that are representative of your app

More information

Bitmap Image Formats

Bitmap Image Formats LECTURE 5 Bitmap Image Formats CS 5513 Multimedia Systems Spring 2009 Imran Ihsan Principal Design Consultant OPUSVII www.opuseven.com Faculty of Engineering & Applied Sciences 1. Image Formats To store

More information

OFFSET AND NOISE COMPENSATION

OFFSET AND NOISE COMPENSATION OFFSET AND NOISE COMPENSATION AO 10V 8.1 Offset and fixed pattern noise reduction Offset variation - shading AO 10V 8.2 Row Noise AO 10V 8.3 Offset compensation Global offset calibration Dark level is

More information

ITP 140 Mobile App Technologies. Images

ITP 140 Mobile App Technologies. Images ITP 140 Mobile App Technologies Images Images All digital images are rectangles! Each image has a width and height 2 Terms Pixel A picture element Screen size In inches Resolution A width and height DPI

More information

Chapter 3 Graphics and Image Data Representations

Chapter 3 Graphics and Image Data Representations Chapter 3 Graphics and Image Data Representations 3.1 Graphics/Image Data Types 3.2 Popular File Formats Li, Drew, & Liu 1 1 3.1 Graphics/Image Data Types The number of file formats used in multimedia

More information

Image processing in MATLAB. Linguaggio Programmazione Matlab-Simulink (2017/2018)

Image processing in MATLAB. Linguaggio Programmazione Matlab-Simulink (2017/2018) Image processing in MATLAB Linguaggio Programmazione Matlab-Simulink (2017/2018) Images in MATLAB MATLAB can import/export several image formats BMP (Microsoft Windows Bitmap) GIF (Graphics Interchange

More information

Output Model. Coordinate Systems. A picture is worth a thousand words (and let s not forget about sound) Device coordinates Physical coordinates

Output Model. Coordinate Systems. A picture is worth a thousand words (and let s not forget about sound) Device coordinates Physical coordinates Output Model A picture is worth a thousand words (and let s not forget about sound) Coordinate Systems Device coordinates Physical coordinates 1 Device Coordinates Most natural units for the output device

More information

Movavi Photo DeNoise User Manual. Start here: Quick start guide Remove trial restrictions Remove noise from photos

Movavi Photo DeNoise User Manual. Start here: Quick start guide Remove trial restrictions Remove noise from photos Movavi Photo DeNoise User Manual Start here: Quick start guide Remove trial restrictions Remove noise from photos Quick start guide How to edit an image and remove color noise Step 1: Open image Open Movavi

More information

Digital Image Fundamentals

Digital Image Fundamentals Digital Image Fundamentals Computer Science Department The University of Western Ontario Presenter: Mahmoud El-Sakka CS2124/CS2125: Introduction to Medical Computing Fall 2012 October 31, 2012 1 Objective

More information

CMPSC 390 Visual Computing Spring 2014 Bob Roos Review Notes Introduction and PixelMath

CMPSC 390 Visual Computing Spring 2014 Bob Roos   Review Notes Introduction and PixelMath Review Notes 1 CMPSC 390 Visual Computing Spring 2014 Bob Roos http://cs.allegheny.edu/~rroos/cs390s2014 Review Notes Introduction and PixelMath Major Concepts: raster image, pixels, grayscale, byte, color

More information

Unit 4.4 Representing Images

Unit 4.4 Representing Images Unit 4.4 Representing Images Candidates should be able to: a) Explain the representation of an image as a series of pixels represented in binary b) Explain the need for metadata to be included in the file

More information

>>> from numpy import random as r >>> I = r.rand(256,256);

>>> from numpy import random as r >>> I = r.rand(256,256); WHAT IS AN IMAGE? >>> from numpy import random as r >>> I = r.rand(256,256); Think-Pair-Share: - What is this? What does it look like? - Which values does it take? - How many values can it take? - Is it

More information

APPLICATION OF COMPUTER VISION FOR DETERMINATION OF SYMMETRICAL OBJECT POSITION IN THREE DIMENSIONAL SPACE

APPLICATION OF COMPUTER VISION FOR DETERMINATION OF SYMMETRICAL OBJECT POSITION IN THREE DIMENSIONAL SPACE APPLICATION OF COMPUTER VISION FOR DETERMINATION OF SYMMETRICAL OBJECT POSITION IN THREE DIMENSIONAL SPACE Najirah Umar 1 1 Jurusan Teknik Informatika, STMIK Handayani Makassar Email : najirah_stmikh@yahoo.com

More information

Indexed Color. A browser may support only a certain number of specific colors, creating a palette from which to choose

Indexed Color. A browser may support only a certain number of specific colors, creating a palette from which to choose Indexed Color A browser may support only a certain number of specific colors, creating a palette from which to choose Figure 3.11 The Netscape color palette 1 QUIZ How many bits are needed to represent

More information

Digital Image Processing. Lecture # 6 Corner Detection & Color Processing

Digital Image Processing. Lecture # 6 Corner Detection & Color Processing Digital Image Processing Lecture # 6 Corner Detection & Color Processing 1 Corners Corners (interest points) Unlike edges, corners (patches of pixels surrounding the corner) do not necessarily correspond

More information

Unit 1.1: Information representation

Unit 1.1: Information representation Unit 1.1: Information representation 1.1.1 Different number system A number system is a writing system for expressing numbers, that is, a mathematical notation for representing numbers of a given set,

More information

6.098/6.882 Computational Photography 1. Problem Set 1. Assigned: Feb 9, 2006 Due: Feb 23, 2006

6.098/6.882 Computational Photography 1. Problem Set 1. Assigned: Feb 9, 2006 Due: Feb 23, 2006 6.098/6.882 Computational Photography 1 Problem Set 1 Assigned: Feb 9, 2006 Due: Feb 23, 2006 Note The problems marked with 6.882 only are for the students who register for 6.882. (Of course, students

More information

Brain Tumor Segmentation of MRI Images Using SVM Classifier Abstract: Keywords: INTRODUCTION RELATED WORK A UGC Recommended Journal

Brain Tumor Segmentation of MRI Images Using SVM Classifier Abstract: Keywords: INTRODUCTION RELATED WORK A UGC Recommended Journal Brain Tumor Segmentation of MRI Images Using SVM Classifier Vidya Kalpavriksha 1, R. H. Goudar 1, V. T. Desai 2, VinayakaMurthy 3 1 Department of CNE, VTU Belagavi 2 Department of CSE, VSMIT, Nippani 3

More information

COURSE ECE-411 IMAGE PROCESSING. Er. DEEPAK SHARMA Asstt. Prof., ECE department. MMEC, MM University, Mullana.

COURSE ECE-411 IMAGE PROCESSING. Er. DEEPAK SHARMA Asstt. Prof., ECE department. MMEC, MM University, Mullana. COURSE ECE-411 IMAGE PROCESSING Er. DEEPAK SHARMA Asstt. Prof., ECE department. MMEC, MM University, Mullana. Why Image Processing? For Human Perception To make images more beautiful or understandable

More information

Q A bitmap file contains the binary on the left below. 1 is white and 0 is black. Colour in each of the squares. What is the letter that is reve

Q A bitmap file contains the binary on the left below. 1 is white and 0 is black. Colour in each of the squares. What is the letter that is reve R 25 Images and Pixels - Reading Images need to be stored and processed using binary. The simplest image format is for an image to be stored as a bitmap image. Bitmap images are made up of picture elements

More information

TOPIC 4 INTRODUCTION TO MEDIA COMPUTATION: DIGITAL PICTURES

TOPIC 4 INTRODUCTION TO MEDIA COMPUTATION: DIGITAL PICTURES TOPIC 4 INTRODUCTION TO MEDIA COMPUTATION: DIGITAL PICTURES Notes adapted from Introduction to Computing and Programming with Java: A Multimedia Approach by M. Guzdial and B. Ericson, and instructor materials

More information

Digital Image Processing. Lecture # 8 Color Processing

Digital Image Processing. Lecture # 8 Color Processing Digital Image Processing Lecture # 8 Color Processing 1 COLOR IMAGE PROCESSING COLOR IMAGE PROCESSING Color Importance Color is an excellent descriptor Suitable for object Identification and Extraction

More information

ECC419 IMAGE PROCESSING

ECC419 IMAGE PROCESSING ECC419 IMAGE PROCESSING INTRODUCTION Image Processing Image processing is a subclass of signal processing concerned specifically with pictures. Digital Image Processing, process digital images by means

More information

Raster (Bitmap) Graphic File Formats & Standards

Raster (Bitmap) Graphic File Formats & Standards Raster (Bitmap) Graphic File Formats & Standards Contents Raster (Bitmap) Images Digital Or Printed Images Resolution Colour Depth Alpha Channel Palettes Antialiasing Compression Colour Models RGB Colour

More information

IMAGE ENHANCEMENT - POINT PROCESSING

IMAGE ENHANCEMENT - POINT PROCESSING 1 IMAGE ENHANCEMENT - POINT PROCESSING KOM3212 Image Processing in Industrial Systems Some of the contents are adopted from R. C. Gonzalez, R. E. Woods, Digital Image Processing, 2nd edition, Prentice

More information

Digital Images. Back to top-level. Digital Images. Back to top-level Representing Images. Dr. Hayden Kwok-Hay So ENGG st semester, 2010

Digital Images. Back to top-level. Digital Images. Back to top-level Representing Images. Dr. Hayden Kwok-Hay So ENGG st semester, 2010 0.9.4 Back to top-level High Level Digital Images ENGG05 st This week Semester, 00 Dr. Hayden Kwok-Hay So Department of Electrical and Electronic Engineering Low Level Applications Image & Video Processing

More information

RGB COLORS. Connecting with Computer Science cs.ubc.ca/~hoos/cpsc101

RGB COLORS. Connecting with Computer Science cs.ubc.ca/~hoos/cpsc101 RGB COLORS Clicker Question How many numbers are commonly used to specify the colour of a pixel? A. 1 B. 2 C. 3 D. 4 or more 2 Yellow = R + G? Combining red and green makes yellow Taught in elementary

More information

Computer Vision. Howie Choset Introduction to Robotics

Computer Vision. Howie Choset   Introduction to Robotics Computer Vision Howie Choset http://www.cs.cmu.edu.edu/~choset Introduction to Robotics http://generalrobotics.org What is vision? What is computer vision? Edge Detection Edge Detection Interest points

More information

GigaPX Tools 2.0. Solutions for oversized images

GigaPX Tools 2.0. Solutions for oversized images Solutions for oversized images Michele Bighignoli February 2016 Contents Introduction...1 Choose the right version...1 Format conversion...2 Crop image...5 Image resize...6 Split image...7 Merge tiles...9

More information

COMPSCI 111 / 111G Mastering Cyberspace: An introduction to practical computing. Digital Images Vector Graphics

COMPSCI 111 / 111G Mastering Cyberspace: An introduction to practical computing. Digital Images Vector Graphics COMPSCI 111 / 111G Mastering Cyberspace: An introduction to practical computing Digital Images Vector Graphics Students should be able to: Learning Outcomes Describe the differences between bitmap graphics

More information

Images and Displays. Lecture Steve Marschner 1

Images and Displays. Lecture Steve Marschner 1 Images and Displays Lecture 2 2008 Steve Marschner 1 Introduction Computer graphics: The study of creating, manipulating, and using visual images in the computer. What is an image? A photographic print?

More information

CMVision and Color Segmentation. CSE398/498 Robocup 19 Jan 05

CMVision and Color Segmentation. CSE398/498 Robocup 19 Jan 05 CMVision and Color Segmentation CSE398/498 Robocup 19 Jan 05 Announcements Please send me your time availability for working in the lab during the M-F, 8AM-8PM time period Why Color Segmentation? Computationally

More information

Carmen Alonso Montes 23rd-27th November 2015

Carmen Alonso Montes 23rd-27th November 2015 Practical Computer Vision: Theory & Applications calonso@bcamath.org 23rd-27th November 2015 Alternative Software Alternative software to matlab Octave Available for Linux, Mac and windows For Mac and

More information

MOTION GRAPHICS BITE 3623

MOTION GRAPHICS BITE 3623 MOTION GRAPHICS BITE 3623 DR. SITI NURUL MAHFUZAH MOHAMAD FTMK, UTEM Lecture 1: Introduction to Graphics Learn critical graphics concepts. 1 Bitmap (Raster) vs. Vector Graphics 2 Software Bitmap Images

More information

Introduction to Image Analysis with

Introduction to Image Analysis with Introduction to Image Analysis with PLEASE ENSURE FIJI IS INSTALLED CORRECTLY! WHAT DO WE HOPE TO ACHIEVE? Specifically, the workshop will cover the following topics: 1. Opening images with Bioformats

More information

TODAY STANDARD COLORS RGB COLOR CS 115: COMPUTING FOR SOCIO-TECHNO WEB REPRESENTATION OF TEXT, NUMBERS AND CODE

TODAY STANDARD COLORS RGB COLOR CS 115: COMPUTING FOR SOCIO-TECHNO WEB REPRESENTATION OF TEXT, NUMBERS AND CODE TODAY Computer components Binary numbers Text representation Color representation ( THE CS 115: COMPUTING FOR SOCIO-TECHNO WEB REPRESENTATION OF TEXT, NUMBERS AND CODE STANDARD COLORS All standards-compliant

More information

Digital Image Processing Lec.(3) 4 th class

Digital Image Processing Lec.(3) 4 th class Digital Image Processing Lec.(3) 4 th class Image Types The image types we will consider are: 1. Binary Images Binary images are the simplest type of images and can take on two values, typically black

More information

Pixilation and Resolution name:

Pixilation and Resolution name: Pixilation and Resolution name: What happens when you take a small image on a computer and make it much bigger? Does the enlarged image look just like the small image? What has changed? Take a look at

More information

Vector VS Pixels Introduction to Adobe Photoshop

Vector VS Pixels Introduction to Adobe Photoshop MMA 100 Foundations of Digital Graphic Design Vector VS Pixels Introduction to Adobe Photoshop Clare Ultimo Using the right software for the right job... Which program is best for what??? Photoshop Illustrator

More information

Chapter 8. Representing Multimedia Digitally

Chapter 8. Representing Multimedia Digitally Chapter 8 Representing Multimedia Digitally Learning Objectives Explain how RGB color is represented in bytes Explain the difference between bits and binary numbers Change an RGB color by binary addition

More information

CGT 511. Image. Image. Digital Image. 2D intensity light function z=f(x,y) defined over a square 0 x,y 1. the value of z can be:

CGT 511. Image. Image. Digital Image. 2D intensity light function z=f(x,y) defined over a square 0 x,y 1. the value of z can be: Image CGT 511 Computer Images Bedřich Beneš, Ph.D. Purdue University Department of Computer Graphics Technology Is continuous 2D image function 2D intensity light function z=f(x,y) defined over a square

More information

EEL 6562 Image Processing and Computer Vision Box Filter and Laplacian Filter Implementation

EEL 6562 Image Processing and Computer Vision Box Filter and Laplacian Filter Implementation DEPARTMENT OF ELECTRICAL & COMPUTER ENGINEERING EEL 6562 Image Processing and Computer Vision Box Filter and Laplacian Filter Implementation Rajesh Pydipati Introduction Image Processing is defined as

More information

Creating Digital Artwork

Creating Digital Artwork 5Steps to Creating Digital Artwork (For more detailed instructions, please click here) Introduction to Digital Artwork Authors often choose to include digital artwork as part of a submission to a medical

More information

Lane Detection in Automotive

Lane Detection in Automotive Lane Detection in Automotive Contents Introduction... 2 Image Processing... 2 Reading an image... 3 RGB to Gray... 3 Mean and Gaussian filtering... 6 Defining our Region of Interest... 10 BirdsEyeView

More information